from django.shortcuts import render
from django.http.response import HttpResponse

# Create your views here.
def index(request):
    return HttpResponse("ok, user.index")

def info(request, id):
    return HttpResponse(f"user_{id} info")

def goods(request, cat_id, attr_id):
    return HttpResponse(f"goods cat_id={cat_id}, attr_id={attr_id}")

def inbuild_reverse(request, num):
    return HttpResponse(f"num={num}")

def inbuild_reverse2(requestm, str):
    return HttpResponse(f"str={str}")

def inbuild_reverse3(requestm, uid):
    return HttpResponse(f"ustr={uid}")